import instance from '@/api/http'

export const queryDepartmentApi = (param: any) => instance({//部门查询
  method:'post',
  url:'/departments/query',
  data:param
})

export const getAllDepartmentApi = () => instance({//查询所有部门
  method:'get',
  url:'/departments/all',
})

export const createDepartmentApi = (param: any) => instance({//部门添加
  method:'post',
  url:'/departments/create',
  data:param
})

export const modifyDepartmentApi = (param: any) => instance({//部门修改
  method:'post',
  url:'/departments/modify',
  data:param
})

export const delDepartmentApi = (param: any) => instance({//部门删除
  method:'post',
  url:'/departments/delete',
  data:param
})